# -*- coding:utf8 -*-
def add_person():
	info = raw_input('输入信息'.decode('utf-8').encode('GBK'))
	target =  open('book.txt','w')
	target.write(info.decode('GBK').encode('utf-8'))
	target.close()
	print u'成功保存'

print u'联系本'
user_option = raw_input("你要做什么?(a:添加 d:删除): ".decode('utf-8').encode('GBK'))
if user_option == 'a':
	add_person()
elif user_option == 'd':
	pass
else:
	print u'不能识别的操作'


